package com.wjy.common.jackson;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.Date;

/**
 * @author ybxxszl
 * @desc 忽略字段
 * @data 2019年4月12日
 */
public abstract class IgnoreField {

    @JsonIgnore
    public abstract Integer getLogicDelete();

    @JsonIgnore
    public abstract Integer getVersion();

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public abstract String getInsertId();

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public abstract Date getInsertTime();

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public abstract String getUpdateId();

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public abstract Date getUpdateTime();

}
